package com.education.welco.pojo;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 班级表 t_class
 *
 * @author d
 * @date 2020-05-08
 */
@JsonInclude(value = JsonInclude.Include.NON_NULL)
@Data
public class TClass implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 编号
     */
    private Integer id;

    /**
     * 班级编号
     */
    private String classCode;

    /**
     * 班级名称
     */
    private String className;

    /**
     * 创建时间
     */
    private Date createTime;
    private String createTimeStr;

    /**
     * 班级简介
     */
    private String introduction;

    /**
     *
     */
    private String type;

    /**
     *
     */
    @NotNull(message = "老师用户id不能为空!")
    private Integer userId;

    /**
     *
     */
    private Integer schoolId;

    /**
     *
     */
    private Integer gradeId;

    /**
     * 1教师 2学生
     */
    private String userType;

    /**
     * 部门id
     */
    private Integer deptId;

    private List<Integer> classIdList;

    /**
     * 部门名称
     */
    private String deptName;

    private Integer catalogId;
    private String resourceType;
    private Integer catalogueId;

    private String label;
    private Integer value;

    private String sysRelName;

    private Integer stuNum;//学生人数

    private String teaList;//授课老师列表

    //班级排课占用状态
    private Boolean classOccupyState;
}